package com.anonymous.community.api.model;

/**
 * 帖子详情响应 - 根据API v3.0.0文档
 * 响应格式：{ "post": {...} }
 */
public class PostDetailResponse {
    private PostInfo post;

    public static class PostInfo {
        private int id;
        private String content;
        private String anonymous_id;
        private int view_count;
        private int like_count;
        private int comment_count;
        private String moderation_status;
        private String created_at;
        private String updated_at;
        private boolean liked;
        private boolean is_author;

        public int getId() {
            return id;
        }

        public String getContent() {
            return content;
        }

        public String getAnonymousId() {
            return anonymous_id;
        }

        public int getViewCount() {
            return view_count;
        }

        public int getLikeCount() {
            return like_count;
        }

        public int getCommentCount() {
            return comment_count;
        }

        public String getModerationStatus() {
            return moderation_status;
        }

        public String getCreatedAt() {
            return created_at;
        }

        public String getUpdatedAt() {
            return updated_at;
        }

        public boolean isLiked() {
            return liked;
        }

        public boolean isAuthor() {
            return is_author;
        }
    }

    public PostInfo getPost() {
        return post;
    }

    public void setPost(PostInfo post) {
        this.post = post;
    }
}
